|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface PinnedHeaderListView.PinnedHeaderAdapter
Adapter interface. The list adapter must implement this interface.
Field Summary | |
---|---|
static int |
PINNED_HEADER_GONE
Pinned header state: don't show the header. |
static int |
PINNED_HEADER_PUSHED_UP
Pinned header state: show the header. |
static int |
PINNED_HEADER_VISIBLE
Pinned header state: show the header at the top of the list. |
Method Summary | |
---|---|
void |
configurePinnedHeader(android.view.View header,
int position,
int alpha)
Configures the pinned header view to match the first visible list item. |
int |
getPinnedHeaderState(int position)
Computes the desired state of the pinned header for the given position of the first visible list item. |
Field Detail |
---|
static final int PINNED_HEADER_GONE
static final int PINNED_HEADER_VISIBLE
static final int PINNED_HEADER_PUSHED_UP
Method Detail |
---|
int getPinnedHeaderState(int position)
PINNED_HEADER_GONE
, PINNED_HEADER_VISIBLE
or
PINNED_HEADER_PUSHED_UP
.
void configurePinnedHeader(android.view.View header, int position, int alpha)
header
- pinned header view.position
- position of the first visible list item.alpha
- fading of the header view, between 0 and 255.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |